package com.jthinker.dao;

import com.jthinker.bean.vo.QueryResult;
import com.jthinker.bean.vo.SearchFilter;

import java.io.Serializable;
import java.util.Map;

/**
 * Created by chen.gang on 2015/2/14.
 */
public interface UserDao
{
    boolean isUnique(String username);

    void updatePass(String saltpass, Serializable id);

    void createUser(Map<String, Object> record);

    Map<String, Object> findOne(Long userId);

    Map<String, Object> findOneByUsername(String username);

    QueryResult<Map<String, Object>> query(SearchFilter filter);

    Map<String, Object> login(String username, String saltPassword);
}
